package xyz.zhzby.cyzx.oj.service;

import xyz.zhzby.cyzx.oj.dto.request.ProblemJudgeRequest;
import xyz.zhzby.cyzx.oj.dto.response.SubmissionResponse;
import xyz.zhzby.cyzx.oj.entity.Submission;
import com.baomidou.mybatisplus.extension.service.IService;
import xyz.zhzby.cyzx.servicebase.domain.RestResponse;

import java.util.List;

/**
 * <p>
 * 评测记录 服务类
 * </p>
 *
 * @author zby
 * @since 2021-12-26
 */
public interface ISubmissionService extends IService<Submission> {

    Long createSubmission(ProblemJudgeRequest problemJudgeRequest, int type);

    RestResponse<List<SubmissionResponse>> getSubmissionList(Long problemId);

    RestResponse<SubmissionResponse> getSubmissionById(Long submissionId);

}
